package com.xinke.module.system.model.vo.sms;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 手机验证码新增/修改 Request VO")
@Data
public class SmsCodeSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "3294")
    private Long smsId;

    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "手机号不能为空")
    private String smsMobile;

    @Schema(description = "验证码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "验证码不能为空")
    private String smsCode;

    @Schema(description = "创建 IP", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "创建 IP不能为空")
    private String createIp;

    @Schema(description = "发送场景", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "发送场景不能为空")
    private Integer sendScene;

    @Schema(description = "今日发送的第几条", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "今日发送的第几条不能为空")
    private Integer todayIndex;

    @Schema(description = "是否使用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否使用不能为空")
    private Integer smsUsed;

    @Schema(description = "使用时间")
    private LocalDateTime usedTime;

    @Schema(description = "使用 IP")
    private String usedIp;

}